<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/x-icon" href="https://openlayers.org/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Using OpenLayers with Vite</title>
  <style>
    .map {
      width: 100%;
      height: 400px;
    }
  </style>
</head>
<body>
<div id="map" class="map"></div>
<form>
  <label for="type">Measurement type &nbsp;</label>
  <select id="type">
    <option value="LineString">Length (LineString)</option>
    <option value="Polygon">Area (Polygon)</option>
  </select>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <label for="segments">Show segment lengths:&nbsp;</label>
  <input type="checkbox" id="segments" checked />
  &nbsp;&nbsp;&nbsp;&nbsp;
  <label for="clear">Clear previous measure:&nbsp;</label>
  <input type="checkbox" id="clear" checked />
</form>

<script type="module" src="./main.js"></script>
</body>
</html>
